<?php
defined('SYS_IN') OR die('error');
class C_index extends controller{
	public function index(){
		$this->view->assign('title','首页-title');
		$this->view->assign(array('a'=>'aaa','b'=>'bbb'));
		$this->view->display('index/index');
	}

	public function test(){
		//echo G('id');
		$this->debug->dump($_SERVER);
		$this->debug->dump(1);
		//$url = url('/index/test?&id=123');
		//$this->view->extract('url',$url);
		$this->view->display('index/index');
	}

	public function db(){

		$test = new M_test();

		//$result = $test->select();
//$this->debug->export($result);
//		$test->insert_one();
		$test->insert_more();
//		$test->update();
//		$test->getcount();
//		$test->del();
//		$test->transcation();
	}
	
	public function bak(){
		$test = new M_test();
		$test->bak();
	}
}
?>